﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<CourseSystem.Core.Entities.QuestionInfo>" %>

<%@ Import Namespace="CourseSystem.Common.Helpers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    问题回复/编辑
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% Html.RenderPartial("AdminTopUc", "问题回复/编辑"); %>
    <% using (Html.BeginForm(new { id = Model.Id, ran = ViewData["ranStr"] }))
       {%>
    <fieldset>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.QuestionContentId) %>
        </div>
        <div class="editor-field">
            <%: Html.TextAreaFor(model => model.QuestionContentInfo.DetailContent, new { @class = "editArea" })%>
            <%: Html.ValidationMessageFor(model => model.QuestionContentId)%>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.AnswerContentId) %>
        </div>
        <div class="editor-field">
            <%: Html.TextAreaFor(model => model.AnswerContentInfo.DetailContent, new { @class = "editArea" })%>
            <%: Html.ValidationMessageFor(model => model.AnswerContentId)%>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.IsCommon) %>
        </div>
        <div class="editor-field">
            <%: Html.CheckBoxFor(model => model.IsCommon) %>
            <%: Html.ValidationMessageFor(model => model.IsCommon) %>
        </div>
        <p>
            <input type="submit" value="保存" /><%=Html.ActionButton("返回","Question") %>
        </p>
    </fieldset>
    <% } %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">
    <script type="text/javascript">
        $(function () {
            bindTextAreaImgEditor('QuestionContentInfo_DetailContent', '<%=ViewData["ranStr"] %>');
            bindTextAreaImgEditor('AnswerContentInfo_DetailContent', '<%=ViewData["ranStr"] %>');
        });
    </script>
</asp:Content>
